<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../../common/taglibs.jsp"%>
<%@include file="../../common/_head.jsp"%>
<html>
<head>
    <title>用户信息</title>
</head>
<body pname="<%=basePath%>">
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <table class="layui-hide" id="data-table" lay-filter="data-table"></table>

                    <script type="text/html" id="data-table-toolbar">
                        <div class="layui">
                            <div class="layui-condition">
                                <label>搜索：</label>
                                <div class="layui-inline" style="width: 150px;">
                                    <input type="text" id="keyword" placeholder="主播id/昵称/手机号" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-condition">
                                <label>头衔：</label>
                                <div class="layui-inline" style="width: 100px;">
                                    <select id="title">
                                        <option value="">全部</option>
                                        <option value="1">王牌主播</option>
                                        <option value="2">最佳新秀</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-condition">
                                <label>在线状态：</label>
                                <div class="layui-inline" style="width: 80px;">
                                    <select id="online">
                                        <option value="">全部</option>
                                        <option value="0">离线</option>
                                        <option value="1">勿扰</option>
                                        <option value="2">在聊</option>
                                        <option value="3">在线</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-condition">
                                <label>时间：</label>
                                <div class="layui-inline" style="width: 180px;">
                                    <input type="text" class="layui-input" id="time" placeholder=" - " autocomplete="off">
                                </div>
                            </div>
                            <div class="layui-condition">
                                <button type="button" class="layui-btn" id="search" lay-event="search">
                                    <i class="layui-icon">&#xe615;</i>搜索
                                </button>
                            </div>
                        </div>
                    </script>

                    <script type="text/html" id="data-table-bar">
                        <div id="aaa">
                        <c:forEach items="${userPermissions}" var="permission">
                            <c:if test="${permission eq '/host/updateLevel'}">
                                <a class="layui-btn layui-btn-xs" lay-event="updateLevel">设置等级/权重</a>
                            </c:if>
                            <c:if test="${permission eq '/host/updateTitle'}">
                                <a class="layui-btn layui-btn-xs" lay-event="updateTitle">设置头衔</a>
                            </c:if>
                            <c:if test="${permission eq '/host/updateCall'}">
                                <a class="layui-btn layui-btn-xs" lay-event="updateCall">
                                    {{# if(d.call == 0){ }}
                                        禁止视频通话
                                    {{# }else{ }}
                                        开启视频通话
                                    {{# } }}
                                </a>
                            </c:if>
                            <c:if test="${permission eq '/host/updateIM'}">
                                <a class="layui-btn layui-btn-xs" lay-event="updateIM">
                                    {{# if(d.im == 0){ }}
                                        禁止IM
                                    {{# }else{ }}
                                        开启IM
                                    {{# } }}
                                </a>
                            </c:if>
                            <c:if test="${permission eq '/host/cancelAudit'}">
                                <a class="layui-btn layui-btn-xs" lay-event="cancelAudit">
                                    取消认证
                                </a>
                            </c:if>
                            <c:if test="${permission eq '/host/editImLimit'}">
                                <a class="layui-btn layui-btn-xs" lay-event="editImLimit">设置视频通话/im频率</a>
                            </c:if>
                            <c:if test="${permission eq '/user/setClean'}">
                                {{# if(d.status == 0){ }}
                                    <a class="layui-btn layui-btn-xs" lay-event="setClean">清退</a>
                                {{# } }}
                            </c:if>
                            <c:if test="${permission eq '/user/submitCleanWithdraw'}">
                                {{# if(d.status == 1 && d.clean == 1){ }}
                                    <a class="layui-btn layui-btn-xs" lay-event="submitCleanWithdraw">清退提现申请</a>
                                {{# } }}
                            </c:if>
                        </c:forEach>
                        </div>
                    </script>

                    <script type="text/html" id="iconTpl">
                            <img src="{{ ossDomain }}/{{d.icon }}"style="width: 100%;">
                    </script>
                    <script type="text/html" id="identityTpl">
                        {{# if(d.identity == 10){ }}
                            黄金
                        {{# }else if(d.identity == 20){ }}
                            铂金
                        {{# }else if(d.identity == 30){ }}
                            钻石
                        {{# }else{ }}
                            --
                        {{# } }}
                    </script>
                    <script type="text/html" id="titleTpl">
                        {{# if(d.title == 1){ }}
                            王牌主播
                        {{# }else if(d.title == 2){ }}
                            最佳新秀
                        {{# }else{ }}
                            -
                        {{# } }}
                    </script>
                    <script type="text/html" id="onlineTpl">
                        {{# if(d.online == 0){ }}
                            离线
                        {{# }else if(d.online == 1){ }}
                            勿扰
                        {{# }else if(d.online == 2){ }}
                            在聊
                        {{# }else{ }}
                            在线
                        {{# } }}
                    </script>
                    <script type="text/html" id="statusTpl">
                        {{# if(d.status == 0){ }}
                            正常
                        {{# }else{ }}
                            <span style="color: red">
                            禁用
                            {{# if(d.clean == 1){ }}
                                (提交清退)
                            {{# }else if(d.clean == 2){ }}
                                (清退打款审核中)
                            {{# }else if(d.clean == 3){ }}
                                (已清退)
                            {{# } }}
                            </span>
                        {{# } }}
                    </script>
                    <script type="text/html" id="inviteCountTpl">
                        <a href="#" lay-event="viewInvite" style="color: #F56177; text-decoration: none;">{{d.inviteCount}}</a>
                    </script>
                    <script type="text/html" id="inviteIdTpl">
                        {{# if(d.inviteId == null){ }}
                            --
                        {{# }else{ }}
                            {{d.inviteId}}
                        {{# } }}
                    </script>
                    <script type="text/html" id="creditTpl">
                        {{d.credit}}/{{d.totalCredit}}
                    </script>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="<%=path%>/js/usermanage/host/list.js?v=1.1.9"></script>
</body>
</html>
